<?php
 include_once './common.php';
$ID = $_GET['ID'];
$sql = "SELECT * FROM goods WHERE id = {$ID}";
$res = mysqli_query($link,$sql);
$arr = array();
while($one = mysqli_fetch_assoc($res)){
	$arr[] = $one;
}
echo json_encode($arr);
?>